<?php
class NewsModel extends DbTable {

    protected $_pk = 'd_id';
    protected $_tableInfo = array(
		'd_id','d_title','d_author','d_abstract','d_adddate'
	);
    //protected $_tablePrefix = 'lm_';


    public function getList(){
        $this->where('d_id > 0')->limit(10)->select();
        return $this->getAll();
    }


    public function oneData($id){
        return $this->_getOne($id);
    }


}